import axios from 'axios';
import { req, reqPost } from './axiosFun';

// 订单列表
export const orderList = (params) => { return reqPost("post", "/order/list", params) };

// 取消订单
export const cancelOrder = (params) => { return reqPost("post", "/order/cancelOrder", params) };

// 订单详情
export const orderDetail = (params) => { return reqPost("post", "/order/detail", params) };

// 订单处理申请退款
export const applyRefundOrder = (params) => { return reqPost("post", "/order/applyRefundOrder", params) };

// 订单审核、发货
export const confirmOrder = (params) => { return reqPost("post", "/order/confirmOrder", params) };